/*
 * Powered By [Frank-Liz-Lee]
 * Copyright(C) 2012-2016 Liz Company
 * All rights reserved.
 * -----------------------------------------------
 */
package com.liz.springCloudAlibaba.provider.mapper;

import com.liz.springCloudAlibaba.provider.model.MnCate;
import com.liz.springCloudAlibaba.provider.model.Pagination;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MnCateMapper extends GenericIBatisMapper <MnCate, Integer>{

    public List<MnCate> findByPagination(Pagination<MnCate> pagination, MnCate mnCate);

    public List<MnCate> findParentCate(@Param("userId") Long userId );
    public List<MnCate> findChildrenCate(@Param("userId") Long userId ,@Param("parentId") Long parentCateId);

}